﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Microsoft.DirectX.Direct3D;

using DataObjects;

namespace GraphicalObjects
{
    public class Ship : MeshInstance
    {
        private GameObject ship;

        public Ship(ObjectMesh mesh, GameObject obj)
            : base(mesh)
        {
            ship = obj;
        }

        public GameObject Info
        {
            get { return ship; }
        }

        override public void Draw(ref Device device)
        {
            if (!Info.IsDestroyed)
            {
                Render(device);
            }
        }
    }
}
